package iosr11.data;

import java.util.List;

public class StudentImpl implements Student{
	
	private List<String> groups;
	private List<Mark> grades;
	private String name;
	private String email;
	private int indexNumber;
	private String id;
	
	@Override
	public List<String> getGroups() {
		return groups;
	}

	@Override
	public void setGroups(List<String> groups) {
		this.groups = groups;
	}

	@Override
	public List<Mark> getGrades() {
		return grades;
	}

	@Override
	public void setGrades(List<Mark> grades) {
		this.grades = grades;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String getEmail() {
		return email;
	}

	@Override
	public void setEmail(String email) {
		this.email = email;
	}

	@Override
	public int getIndexNumber() {
		return indexNumber;
	}

	@Override
	public void setIndexNumber(int indexNumber) {
		this.indexNumber = indexNumber;
	}

	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}
	
	public StudentImpl(){
		
	}
	
	public StudentImpl(String realUserName, String email, int indexNumber, String studentId, List<String> groups){
		this.id=studentId;
		this.name=realUserName;
		this.email=email;
		this.groups=groups;
		this.indexNumber = indexNumber;
	}
	
	public String toString(){
		StringBuffer buf = new StringBuffer();
		buf.append("Dane studenta:\n");
		buf.append(id);
		buf.append("\n");
		buf.append(name);
		buf.append("\n");
		buf.append(email);
		buf.append("\n");
		buf.append(indexNumber);
		buf.append("\n");
		
		return buf.toString();
	}
}
